<template>
  <div class="mscard">
    <div class="top">
        <div><img class="one" src="//gw.alicdn.com/imgextra/i4/O1CN01NU2l3R22Agq0BkaHG_!!6000000007080-2-tps-72-72.png_.webp" alt="" @click="fun"><img class="one-1" src="//gw.alicdn.com/imgextra/i1/O1CN014z2XUh24kX7vObv2U_!!6000000007429-2-tps-188-36.png_220x10000.jpg_.webp" alt=""></div>
        <div class="top-1">
            <img class="one-2" src="//gw.alicdn.com/imgextra/i4/O1CN01Wfxspm1qrwuwYWesu_!!6000000005550-2-tps-54-54.png_110x10000.jpg_.webp" alt=""><span>红包可与店铺优惠叠加</span>
        </div>
    </div>
    <div class="sqk">
        <div class="sqk-left">
            <div  class="tqz">
                <div>
                    <span>Hi, 你当前的淘气值</span><span class="tqz-n">460</span>
                </div>
                <div><span>管理</span><img class="img1" src="//gw.alicdn.com/imgextra/i1/O1CN01z7wN0g1lZ6XTsQcyE_!!6000000004832-2-tps-26-26.png_110x10000.jpg_.webp" alt=""></div>
            </div>
            <img class="img2" src="//gw.alicdn.com/imgextra/i2/O1CN01D45ZYI25XzvONsA0U_!!6000000007537-2-tps-478-52.png_.webp" alt="">
        </div>
        <img class="img3" src="//gw.alicdn.com/imgextra/i2/O1CN01HN7wcX1Xjj8KOfHme_!!6000000002960-2-tps-366-236.png_290x10000.jpg_.webp" alt="">
    </div>
    <div class="tyhb">
        <div class="hb">淘宝天猫通用红包50元</div>
        <!-- 红包 -->
        <div class="list">
            <div class="hong" v-for="(v,index) in 8" :key="index">
                <div class="hong-1">实物通用</div>
                <div class="hong-2">3元</div>
                <div class="hong-3">满199可用</div>
                <img class="xia" src="//gw.alicdn.com/imgextra/i2/O1CN019ZdJ5U29sqOCks7xp_!!6000000008124-2-tps-152-94.png_.webp" alt="">
                <img class="zhong" src="//gw.alicdn.com/imgextra/i1/O1CN01zmvr7522yc4KFxQdr_!!6000000007189-2-tps-134-152.png_.webp" alt="">
                <img class="shang" src="//gw.alicdn.com/imgextra/i2/O1CN01AdzZfa1qfaA2U9LTr_!!6000000005523-2-tps-306-180.png_.webp" alt="">
            </div>
        </div>
        <!-- 通知 -->
        <img class="gd" src="https://gw.alicdn.com/imgextra/i3/O1CN01Ss9g0B1jMcXkhbaQq_!!6000000004534-1-tps-690-48.gif" alt="">
        <div class="sorry">很抱歉，淘宝省钱卡为平台邀请制，请静候邀请</div>
        <div class="xian"></div>
        <div class="kanguo">你最近看过的商品都能省哦</div>
        <div class="gyh">
            <div class="gyhone" v-for="(v,index) in 3" :key="index">
                <img src="//gw.alicdn.com/bao/uploaded/i4/129241492/O1CN01y5UfPu1MtNjy1cnyC_!!0-saturn_solar.jpg_220x10000Q75.jpg_.webp" alt="" width="93px" height="93px">
                <div class="gyh-1">用红包更优惠</div>
                <div class="gyh-2"><span class="gyh-3">¥35</span><span class="gyh-4">¥35</span></div>
            </div>
        </div>
    </div>
    <div class="xiang">
        <div class="suixin">省钱卡精选·随心省</div>
        <div class="fenlei">
            <div class="f-l">
                <div class="f-1" v-for="(v,index) in arr" :key="index" :class="{dian:flag==index}" @click="fun2(index)">{{ v }}</div>
            </div>
            <div class="f-r"><van-icon name="search" @click="fun1"/> 手链</div>
        </div>
        <List></List>
    </div>
    
  </div>
</template>

<script>
import List from '@/components/lxd/homeCom/pbl1.vue'
export default {
  components: { List },
    data(){
        return{
            arr:[
                '精选','男士','食品','百货','美妆','洗护','数码'
            ],
            flag:0
        }
    },
    methods:{
        fun(){
            this.$router.push("/")
        },
        fun1(){
            this.$router.push("/mysearch")
        },
        fun2(index){
            this.flag=index
        }

    }
}
</script>

<style lang="scss" scoped>
    .mscard{
        background-color: rgb(234, 239, 245);
    }
    .top{
        width: 100%;
        height: .88rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .one{
        width: .48rem;
        height: .48rem;
        margin-left: .2rem;
    }
    .one-1{
        width: 104px;
        height: 18px;
        margin-left: .2rem;
        margin-top: .1rem;
    }
    .one-2{
        width: 18px;
        height: 18px;
    }
    .top-1{
        background-image: linear-gradient(rgba(0, 0, 0, 0.06) 24%, rgba(0, 0, 0, 0.08) 100%);
        margin-right: .2rem;
        border-radius: .2rem;
        padding: .05rem;
        color: rgb(17, 17, 17);
    }
    .sqk{
        height: 91px;
        display: flex;
        justify-content: space-between;
    }
    .img1{
        width: 0.25rem;
        height: 0.25rem;
    }
    .img2{
        width: 4.5rem;
        height: .49rem;
    }
    .img3{
        width: 2.42rem;
        height: 1.57rem;
        padding-top: .25rem;
    }
    .sqk-left{
        padding: 15px 0 0 .28rem;
    }
    .tqz{
        display: flex;
        margin-bottom: .28rem;
    }
    .tqz-n{
        color: red;
    }
    .tyhb{
        height: 10.112rem;
        background-color: #fff;
        border-radius: 16px;
        margin: 0 .12rem;
    }
    .hb{
        font-size: 18px;
        font-weight: 600;
        padding: .2rem 0 0 .2rem;
    }
    .shang{
        position: absolute;
        width: 1.52rem;
        height: 45px;
        z-index: 7;
        top: .04rem;
        left: .02rem;
    }
    .zhong{
        position: absolute;
        width: 1.34rem;
        height: 76px;
        z-index: 8;
        top: 0;
        left: .1rem;
    }
    .xia{
        position: absolute;
        width: 1.54rem;
        height: 47px;
        z-index: 9;
        top: .7rem;
        left: 0;
    }
    .hong{
        position: relative;
        height: 1.64rem;
        width: 1.7rem;
        margin-bottom: .2rem;
    }
    .list{
        display: flex;
        overflow: auto;
        flex-wrap: wrap;
        justify-content: space-around;
    }
    .hong-1{
        width: 54.5px;
        height: 11px;
        color: rgb(236, 28, 24);
        position: absolute;
        z-index: 11;
        top: .02rem;
        left: .26rem;
    }
    .hong-2{
        color: rgb(236, 28, 24);
        position: absolute;
        z-index: 11;
        top: .3rem;
        left: .42rem;
        font-size: 22px;
    }
    .hong-3{
        color: #fff;
        position: absolute;
        z-index: 11;
        top: 1.12rem;
        left: .18rem;
        font-size: .26rem;
    }
    .gd{
        width: 6.9rem;
        height: .48rem;
        margin-left: .2rem;
    }
    .sorry{
        width: 6.9rem;
        height: .8rem;
        margin-left: .2rem;
        font-size: .3rem;
        background-image: linear-gradient(90deg, rgb(255, 237, 235), rgb(253, 231, 234));
        border-radius: .32rem;
        margin-top: 10px;
        padding: .25rem .2rem;
        box-sizing: border-box;
        color: #ec1c18;
        margin-bottom: 10px;
    }
    .xian{
        width: 6.9rem;
        height: .02rem;
        margin-left: .2rem;
        background-color: #f3f3f3;
        margin-top: 18px;
        margin-bottom: 18px;
    }
    .kanguo{
        width: 7.08rem;
        height: .36rem;
        font-size: .36rem;
        margin: 0 0 .24rem .18rem;
    }
    .gyhone img{
        border-radius: 16px;
    }
    .gyh-1{
        background-image: linear-gradient(136deg, rgba(236, 9, 38, 0.8) 0%, rgba(251, 70, 51, 0.8) 100%);
        color: #fff;
        font-size: 12px;
        width: 85px;
        height: 20px;
        border-radius: 16px;
        text-align: center;
        line-height: 20px;
    }
    .gyh-2{
        width: 78px;
        height: 16px;
        text-align: center;
    }
    .gyh-4{
        color: #999;
        text-decoration: line-through;
    }
    .gyh{
        display: flex;
        justify-content: space-around;
    }
    .xiang{
        margin-top: 15px;
        border-radius: 16px;
        background-color: #fff;
        overflow: hidden;
    }
    .suixin{
        margin: 15px 0 0 .3rem;
        font-size: .36rem;
        font-weight: 600;
    }
    .fenlei{
        height: 48px;
        display: flex;
    }
    .f-l{
        width: 4.48rem;
        height: .6rem;
        margin: 9px 0 0 .3rem;
        display: flex;
        flex-wrap: nowrap;
        overflow: auto;
    }
    .f-r{
        width: 126px;
        height: .6rem;
        text-align: center;
        line-height: .6rem;
        background-color: #f5f5f5;
        color: #999;
        border-radius: .32rem;
        padding: 0 .5rem;
        box-sizing: border-box;
    }
    .f-1{
        width: 28px;
        height: 18px;
        margin-right: .5rem;
        font-size: 14px;
       flex-shrink: 0;
        display: flex;
        align-items: center;
    }
    .dian{
        color: red;
    }
</style>